#ifndef _LANGUAGE_H
#define _LANGUAGE_H
#define _(str) gettext(str)
#define N_(str) str

/*mainwindow*/
#define TEXT_MENU_OPERATION _("operation")
#define TEXT_SUB_MENU_START _("start")
#define TEXT_SUB_MENU_EXIT _("exit")
#define TEXT_SUB_MENU_DISCONNECT _("disconnect")
#define TEXT_MENU_SET _("set")
#define TEXT_SUB_MENU_APP _("application")
#define TEXT_SUB_MENU_CUSTOM _("custom")
#define TEXT_SUB_MENU_ADVANCE _("advance")
#define TEXT_SUB_MENU_NETSTAT _("netstat")
#define TEXT_SUB_MENU_PREFERENCE _("perference")
#define TEXT_MENU_HELP _("help")
#define TEXT_SUB_MENU_ABOUT _("about")


#define TEXT_BUTTON_START _("start")
#define TEXT_BUTTON_DISCONNECT _("disconnect")
#define TEXT_BUTTON_QUIT  _("quit")

#define TEXT_APP _("application")
#define TEXT_CUSTOM _("custom")
#define TEXT_ADVANCE _("advance")
#define TEXT_NETSTAT _("netstat")
#define TEXT_PREFERENCE _("perference")

/*promopt dialog*/
#define TEXT_COOLNET_SECURITY_ALERT	_("coolnet security alert")
#define TEXT_ALLOW	_("allow")
#define TEXT_DENY	_("deny")
#define TEXT_COOLNET_ALERT_HEADER	_("Do you want to this program access the Internet or a network?")
#define TEXT_NAME	_("  name:  ")
#define TEXT_PATH	_("  path:  ")
#define TEXT_PID	_("  pid:   ")

#define TEXT_MORE_INFO  _("more information")
#define TEXT_FROM_ADDR  _("  from  ")
#define TEXT_TO_ADDR    _("  to    ")
#define TEXT_MD5        _("  md5:  ")

#define TEXT_COOLNET_DIGESTALERT_HEADER _("Warning:Md5 checksum changes detected.\nThis application mabe replaced by another harmful application or it has been updated.Do you still want it to access the Internet or a network?")

/*tray icon*/
#define TEXT_TRAYICON_TIPS	_("coolnet tray icon tips")
/*notebook*/
#define TEXT_REGULAR	_("general")
#define TEXT_USER_DEFINED	_("user defined")
#define TEXT_ADVANCE	_("advance")
#define TEXT_OTHERS	_("misc")
/*regular page*/
#define TEXT_COLUMN_NAME	_("name")
#define TEXT_COLUMN_PATH	_("path")
#define TEXT_NETWORK_ACCESS	_("network access")
/*user-defined page*/
#define TEXT_COLUMN_DESC	_("description")
#define	TEXT_COLUMN_PROTO	_("protocol")
#define TEXT_COLUMN_LOCAL_PORT	_("local-port")
#define TEXT_COLUMN_REMOTE_PORT	_("remote-port")
#define TEXT_COLUMN_POLICY	_("action")
#define TEXT_COLUMN_STATUS	_("status")
#define TEXT_ACTION_ACCEPT	_("ACCEPT")
#define TEXT_ACTION_DROP	_("DROP")
#define TEXT_PROTO_TCP	_("tcp")
#define TEXT_PROTO_UDP	_("udp")
#define TEXT_ANYPORT	_("anyport")
/*advanced page*/
#define TEXT_FRAME_ICMP	_("icmp")
#define TEXT_FRAME_LOG	_("security log")
#define TEXT_FRAME_RESTORE	_("restore")
#define TEXT_LABEL_ICMP	_("setting icmp")
#define TEXT_LABEL_LOG	_("setting log")
#define TEXT_LABEL_RESTORE	_("restore to default configuration")

#define TEXT_BUTTON_SETTING	_("setting")
/*others page*/
#define TEXT_LABEL_DHCP	_("enable dhcp")
#define TEXT_LABEL_LO	_("enable loop back")
#define TEXT_LABEL_MD5	_("enable md5 checksum") 
#define TEXT_LABEL_WITH_BOOT	_("start Coolnet with boot")
/*add rules dialog*/
#define TEXT_ADD_RULES	_("add rules")
#define TEXT_RULE_DESC	_("rule description")
#define TEXT_PROTO	_("protocol")
#define TEXT_UDP	_("udp")
#define TEXT_TCP	_("tcp")
#define TEXT_ACTION	_("action")
#define TEXT_ACCEPT	_("accept")
#define TEXT_DROP	_("drop")
#define	TEXT_LOCAL_PORT	_("local port")
#define TEXT_REMOTE_PORT	_("remote port")
#define TEXT_FROM	_("from")
#define TEXT_TO	_("to")
#define TEXT_USER_DEFINED_RULES_DESC	_("The port range is 1-65535.0 means any port.")
/*icmp setting dialog*/
#define TEXT_ICMP_SETTING	_("icmp setting")
#define TEXT_FRAME_PING	_("ping")
#define TEXT_FRAME_REQUEST	_("request")
#define TEXT_FRAME_REPLY	_("reply")
#define TEXT_FRAME_DESC	_("description")

#define TEXT_ALLOW_PINGING	_("allow me to ping others")
#define TEXT_ALLOW_PINGED	_("allow others to ping me")
#define TEXT_TIMESTAP_REQUEST	_("allow timestap request") 
#define TEXT_MASK_REQUEST	_("allow mask request")
#define TEXT_ROUTE_REQUSET	_("allow route request")

#define TEXT_DEST_UNREACHABLE_REPLY	_("allow destination unreachable reply")
#define TEXT_SOURCE_QUENCH_REPLY	_("allow source quench reply")
#define TEXT_PARAM_PROBLEM_REPLY	_("allow param problem reply")
#define TEXT_TIME_EXCEED_REPLY	_("allow time exceed reply")
#define TEXT_REDIRECT_REPLY	_("allow redirect reply") 

#define TEXT_DESC_ICMP	_("Internet Control Message Protocol (ICMP) is a required TCP/IP standard defined in RFC 792. With ICMP, hosts and routers that use IP communication can report errors and exchange limited control and status information.")
#endif
/*Error message*/
#define TEXT_DESC_CANNOT_BE_NULL	_("Rules descrpition can't be NULL.")
#define TEXT_PORT_FORMAT_ERROR	_("Port value format error or not yet type port value.")
#define TEXT_RULES_ALREADY_EXIT	_("Rules already exist.")
#define TEXT_PORT_RANGE_ERROR	_("FROM value can't be greater than TO value.")
